//
//  BK_SPF_Status_Cell.m
//  bestkeep
//
//  Created by TOPTEAM on 2017/4/6.
//  Copyright © 2017年 utouu. All rights reserved.
//

#import "BK_SPF_Status_Cell.h"
#import <Masonry.h>
#import "BK_OD_Color.h"

@interface BK_SPF_Status_Cell ()

@property (nonatomic,strong) UILabel* lab_status;
@property(nonatomic, strong) UIImageView *ImgV_Success;//
@end



@implementation BK_SPF_Status_Cell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self){
        self.backgroundColor = [UIColor whiteColor];
        [self initView];
    }
    return self;
}

- (void)initView{
    
    
    _ImgV_Success=[[UIImageView alloc]init];
    _ImgV_Success.backgroundColor = [UIColor whiteColor];
    _ImgV_Success.contentMode = UIViewContentModeScaleToFill;
    _ImgV_Success.image=[UIImage imageNamed:@"BK_PayStore_fail"];
    [self addSubview:_ImgV_Success];
    [_ImgV_Success mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.centerY.equalTo(self.mas_centerY);
        make.left.mas_equalTo((ScreenWidth-73.5-25-6)/2.0);
        make.width.mas_equalTo(@(25));
        make.height.mas_equalTo(@(25));
    }];
    
    
    _lab_status = [UILabel new];
    _lab_status.textColor = kOrderBlack1;
    _lab_status.numberOfLines = 2;
    _lab_status.backgroundColor = [UIColor clearColor];
    _lab_status.font = [UIFont systemFontOfSize:18];
    _lab_status.text = @"支付失败";
    [self addSubview:_lab_status];
    [_lab_status mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerY.equalTo(self.mas_centerY);
        make.left.equalTo(_ImgV_Success.mas_right).offset(6);
    }];
  
    
}


+(CGFloat)computeHeight:(id)data{
    return 110/2.0;
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
